# Preface : Nilkins Scripts

## Presentation

Within the nkScripts component, create, populate, and use scripting environment. Currently supported scripting languages are :

- Lua through LuaJIT

The component will enable you to write and compile scripts on the fly. Those scripts will be executable by any environment created through nkScripts.

An environment has its own memory, its own functions, types, specified by the application using the component. By creating an environment and its ecosystem, an application can easily make a bridge between any functionality it needs and the dynamic nature of a script.

For instance, nkAstraeus leverages what nkScripts offers to expose the Nilkins Engine API to a Lua scripting environment.

This tutorial series will guide you through creating and setting up a scripting environment. Through it you will witness how the link between C++ and the scripting environment can be made.

Through the tutorials, the scripting language used will be Lua, as it is the first supported. We won't use very advanced or tricky features, but if you want to get up to speed quickly before digging, you can find a good starting point here.